/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.ucsur.tp.colegio.beans;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 *
 * @author Administrador
 */
public class AlumnoBean {
    
    private String txtIDEduc;
    private String txtCodigoAlumno;
    private String txtNombreAlumno;
    private String txtApePaterAlumno;
    private String txtApeMaterAlumno;
    private Date txtFecNacAlumno;
    private SexoBean sexo;
    private String txtTutorAlumno;
    private String txtEmailTutorAlumno;
    private String txttelefonoTutorAlumno;
    private ProvinciaBean codigoprovincia;
    private RegionBean codigoregion;
    private DistritoBean codigodistrito;
        
    private SimpleDateFormat sdf1 = new SimpleDateFormat("dd/MM/yyyy");

    public AlumnoBean( String txtIDEduc, String txtCodigoAlumno, String txtNombreAlumno, String txtApePaterAlumno,
                       String txtApeMaterAlumno, String txtFecNacAlumno , String txtTutorAlumno, String txtEmailTutorAlumno, String txttelefonoTutorAlumno){
        
        this.txtIDEduc = txtIDEduc;
        this.txtCodigoAlumno = txtCodigoAlumno;
        this.txtNombreAlumno = txtNombreAlumno;
        this.txtApePaterAlumno = txtApePaterAlumno;
        this.txtApeMaterAlumno = txtApeMaterAlumno;
        this.txtTutorAlumno = txtTutorAlumno;
        this.txtEmailTutorAlumno = txtEmailTutorAlumno;
        this.txttelefonoTutorAlumno = txttelefonoTutorAlumno;
        
        try{
            this.txtFecNacAlumno = sdf1.parse(txtFecNacAlumno);
            
        }catch (Exception ex1) {
      
    }
   }

    public AlumnoBean() {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    public String getTxtIDEduc() {
        return txtIDEduc;
    }

    public void setTxtIDEduc(String txtIDEduc) {
        this.txtIDEduc = txtIDEduc;
    }

    public String getTxtCodigoAlumno() {
        return txtCodigoAlumno;
    }

    public void setTxtCodigoAlumno(String txtCodigoAlumno) {
        this.txtCodigoAlumno = txtCodigoAlumno;
    }

    public String getTxtNombreAlumno() {
        return txtNombreAlumno;
    }

    public void setTxtNombreAlumno(String txtNombreAlumno) {
        this.txtNombreAlumno = txtNombreAlumno;
    }

    public String getTxtApePaterAlumno() {
        return txtApePaterAlumno;
    }

    public void setTxtApePaterAlumno(String txtApePaterAlumno) {
        this.txtApePaterAlumno = txtApePaterAlumno;
    }

    public String getTxtApeMaterAlumno() {
        return txtApeMaterAlumno;
    }

    public void setTxtApeMaterAlumno(String txtApeMaterAlumno) {
        this.txtApeMaterAlumno = txtApeMaterAlumno;
    }

    public Date getTxtFecNacAlumno() {
        return txtFecNacAlumno;
    }

    public void setTxtFecNacAlumno(Date txtFecNacAlumno) {
        this.txtFecNacAlumno = txtFecNacAlumno;
    }

    public SexoBean getSexo() {
        return sexo;
    }

    public void setSexo(SexoBean sexo) {
        this.sexo = sexo;
    }

    public String getTxtTutorAlumno() {
        return txtTutorAlumno;
    }

    public void setTxtTutorAlumno(String txtTutorAlumno) {
        this.txtTutorAlumno = txtTutorAlumno;
    }

    public String getTxtEmailTutorAlumno() {
        return txtEmailTutorAlumno;
    }

    public void setTxtEmailTutorAlumno(String txtEmailTutorAlumno) {
        this.txtEmailTutorAlumno = txtEmailTutorAlumno;
    }

    public String getTxttelefonoTutorAlumno() {
        return txttelefonoTutorAlumno;
    }

    public void setTxttelefonoTutorAlumno(String txttelefonoTutorAlumno) {
        this.txttelefonoTutorAlumno = txttelefonoTutorAlumno;
    }

    public ProvinciaBean getCodigoprovincia() {
        return codigoprovincia;
    }

    public void setCodigoprovincia(ProvinciaBean codigoprovincia) {
        this.codigoprovincia = codigoprovincia;
    }

    public RegionBean getCodigoregion() {
        return codigoregion;
    }

    public void setCodigoregion(RegionBean codigoregion) {
        this.codigoregion = codigoregion;
    }

    public DistritoBean getCodigodistrito() {
        return codigodistrito;
    }

    public void setCodigodistrito(DistritoBean codigodistrito) {
        this.codigodistrito = codigodistrito;
    }

    public SimpleDateFormat getSdf1() {
        return sdf1;
    }

    public void setSdf1(SimpleDateFormat sdf1) {
        this.sdf1 = sdf1;
    }
  
        
    public String toString(){
        return txtIDEduc + ", " + txtCodigoAlumno + ", " + txtNombreAlumno + ", " + txtApePaterAlumno + "," + txtApeMaterAlumno + ", " +
           sdf1.format(txtFecNacAlumno) + " , " + txtTutorAlumno + ", " + txtEmailTutorAlumno + "  , " + txttelefonoTutorAlumno;
    }
        
}
